package org.shagin.jfin.data.model;

import java.util.LinkedList;
import java.util.List;

/**
 * The Class OperationCategoryLeaf.
 */
public class OperationCategoryLeaf extends OperationCategory {

    private List<OperationRule> rules = new LinkedList<OperationRule>();

    /**
     * Instantiates a new operation category leaf.
     *
     * @param name the name
     */
    public OperationCategoryLeaf(String name, IBudget budget) {
        super(name, budget);
    }

    /**
     * Gets the rules.
     *
     * @return the rules
     */
    public List<OperationRule> getRules() {
        return rules;
    }

    /**
     * Adds the rule.
     *
     * @param rule the rule
     */
    public void addRule(OperationRule rule) {
        rules.add(rule);
    }
}
